/*

执行结果：
sizeof(char):1 字节
signed char:-128 ~ 127

sizeof(short):2 字节
signed short:-32768 ~ 32767

sizeof(int):4 字节
signed int:-2147483648 ~ 2147483647

sizeof(long):8 字节
signed long:-9223372036854775808 ~ 9223372036854775807

*/

#include<stdio.h>
#include<limits.h>
int main(){
	printf("sizeof(char):%ld 字节\n",sizeof(char));
	printf("signed char:%d ~ %d\n",SCHAR_MIN,SCHAR_MAX);
	
	printf("sizeof(short):%ld 字节\n",sizeof(short));
	printf("signed short:%d ~ %d\n",SHRT_MIN,SHRT_MAX);
	
	printf("sizeof(int):%ld 字节\n",sizeof(int));
        printf("signed int:%d ~ %d\n",INT_MIN,INT_MAX);
        
        printf("sizeof(long):%ld 字节\n",sizeof(long));
        printf("signed long:%ld ~ %ld\n",LONG_MIN,LONG_MAX);
        return 0;
}
